
                    <form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
                        <div class="table-responsive">
                            <table id="list-table" class="table table-bordered table-striped dataTable">
		                 <thead>
		                   <tr role="row">
			                   <th class="text-center"><input type="checkbox" onclick="choosebox(this)">全选</th>
			                   <th class="text-center">名称</th>
			                   <th class="text-center">所属分组</th>
			                   <th class="text-center">权限码</th>
			                   <th class="text-center">操作</th>
		                   </tr>
		                 </thead>
						<tbody>
						  <foreach name="right_list" item="vo" key="k" >
						  	<tr role="row" align="center">
		                     <td><input type="checkbox" name="right[]" value="{$vo.id}"></td>
		                     <td>{$vo.name}</td>
		                     <td>{$group[$vo[group]]}</td>
		                     <td><div style="width:500px;word-wrap:break-word;">{$vo.right}</div></td>
		                     <td>
		                      <a class="btn btn-primary btn-xs" href="{:U('System/edit_right',array('id'=>$vo['id']))}"><i class="icon-gear"></i>设置</a>
		                      <a class="btn btn-danger btn-xs" href="javascript:void(0)" data-url="{:U('System/right_del')}" data-id="{$vo.id}" onclick="delfunc(this)"><i class="icon-trash"></i>删除</a>
							</td>
		                   </tr>
		                  </foreach>
		                   </tbody>
		                 <tfoot>		                 
		                 </tfoot>
		               </table>	 
                        </div>
                    </form>
                    <div class="row">
                        <div class="col-xs-12 text-center">{$page}</div>
                    </div>
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
</script>